﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DonutLandLibrary.Robots.Environments;

namespace RobotsInDonutLand.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            RobotEnvironment robotEnvironment = new RobotEnvironment();

            ViewBag.Message = "Welcome to Donutland!";
            
            ViewBag.DonutLand = robotEnvironment.Squares.renderSquareCollection(Square.renderFormat.html);

            ViewBag.PowerSources = robotEnvironment.Squares.PowerSources;
            ViewBag.CorrosivePatches = robotEnvironment.Squares.CorrosivePatches;

            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
